<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>RestfulLinux: RFBinData.h文件参考</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">RestfulLinux
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">RFBinData.h文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>二进制数据操作接口封装，主要提供上传和查看功能。  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="osDataType_8h_source.html">osAdaption/osDataType.h</a>&gt;</code><br/>
</div>
<p><a href="RFBinData_8h_source.html">浏览该文件的源代码。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFBinData_8h.html#aca8bf5faef55dccf33862cc2dbb88398">BINDATA_INDEX_LEN_MAX</a>&#160;&#160;&#160;63</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFBinData_8h.html#ad2f480cebe70f4939b81629a03deac5d">RFBinData_Create</a> (int8 *APIKey, int8 *streamID, int8 *binData, uint32 dataLen, int8 *index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">向云端添加二进制数据  <a href="#ad2f480cebe70f4939b81629a03deac5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="RFBinData_8h.html#aea0aac52866526238ffbe2a2dc9dfd67">RFBinData_View</a> (int8 *APIKey, int8 *index, int8 *binData, uint32 *dataLen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">查看云端上指定的二进制数据  <a href="#aea0aac52866526238ffbe2a2dc9dfd67"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>详细描述</h2>
<div class="textblock"><p>二进制数据操作接口封装，主要提供上传和查看功能。 </p>
<p>Copyright (c), 2012~2016 iot.10086.cn All Rights Reserved</p>
<dl class="author"><dt><b>作者:</b></dt><dd>宋伟&lt;<a href="mailto:songwei1@iot.chinamobile.com">songwei1@iot.chinamobile.com</a>&gt; </dd></dl>
<dl class="date"><dt><b>日期:</b></dt><dd>2016/05/24 </dd></dl>
<dl class="version"><dt><b>版本:</b></dt><dd>1.0.0 </dd></dl>
<dl class="user"><dt><b>Revision History:</b></dt><dd>Date Author Revised.Ver Notes<br/>
 2015/5/24 宋伟 1.0.0 file created<br/>
 </dd></dl>
</div><hr/><h2>宏定义文档</h2>
<a class="anchor" id="aca8bf5faef55dccf33862cc2dbb88398"></a><!-- doxytag: member="RFBinData.h::BINDATA_INDEX_LEN_MAX" ref="aca8bf5faef55dccf33862cc2dbb88398" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="RFBinData_8h.html#aca8bf5faef55dccf33862cc2dbb88398">BINDATA_INDEX_LEN_MAX</a>&#160;&#160;&#160;63</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>云端分配为二进制数据分配的索引长度 </p>

</div>
</div>
<hr/><h2>函数文档</h2>
<a class="anchor" id="ad2f480cebe70f4939b81629a03deac5d"></a><!-- doxytag: member="RFBinData.h::RFBinData_Create" ref="ad2f480cebe70f4939b81629a03deac5d" args="(int8 *APIKey, int8 *streamID, int8 *binData, uint32 dataLen, int8 *index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFBinData_8h.html#ad2f480cebe70f4939b81629a03deac5d">RFBinData_Create</a> </td>
          <td>(</td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>APIKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>streamID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>binData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>dataLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>向云端添加二进制数据 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">APIKey</td><td>有添加数据权限的APIKey </td></tr>
    <tr><td class="paramname">streamID</td><td>数据流名称（不是数据流UUID） </td></tr>
    <tr><td class="paramname">binData</td><td>需要添加到云端的二进制数据缓冲区 </td></tr>
    <tr><td class="paramname">dataLen</td><td>需要添加到云端的二进制数据长度 </td></tr>
    <tr><td class="paramname">index</td><td>上传成功后，返回该二进制数据在云端的序列号</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参考<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aea0aac52866526238ffbe2a2dc9dfd67"></a><!-- doxytag: member="RFBinData.h::RFBinData_View" ref="aea0aac52866526238ffbe2a2dc9dfd67" args="(int8 *APIKey, int8 *index, int8 *binData, uint32 *dataLen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="RFBinData_8h.html#aea0aac52866526238ffbe2a2dc9dfd67">RFBinData_View</a> </td>
          <td>(</td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>APIKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8 *&#160;</td>
          <td class="paramname"><em>binData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32 *&#160;</td>
          <td class="paramname"><em>dataLen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>查看云端上指定的二进制数据 </p>
<dl class="params"><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">APIKey</td><td>有查看数据权限的APIKey </td></tr>
    <tr><td class="paramname">index</td><td>创建二进制数据时生成的云端序列号 </td></tr>
    <tr><td class="paramname">binData</td><td>返回获取到的二进制数据。暂时只支持不超过4K的数据获取（包括HTTP头） </td></tr>
    <tr><td class="paramname">dataLen</td><td>返回获取到的二进制数据长度</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>参考<a class="el" href="OSAErrno_8h.html">OSAErrno.h</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated at 2016年六月3日 星期五 09:08:32 for RestfulLinux by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
